package cn.ac.iie.kgmanager.service;

import cn.ac.iie.kgmanager.domain.Node;
import cn.ac.iie.kgmanager.dto.request.GraphRelation;

import java.util.List;
import java.util.Set;

/**
 * @ClassName GraphService
 * @Author tjh
 * @Date 19/6/12 上午10:49
 * @Version 1.0
 **/
public interface GraphService {
    // 根据ID和周边关系获取节点
    List<Node> getIdsByRelation(String id, List<GraphRelation> relations);
    // 适配土拨鼠需求
    List<Node> getIdsByRelation(String sourceId, Set<String> firstLabels, Set<String> secondLabels);
}
